package cc.verywell.pureblock.msg.nfs.linkmap;
/**
* 
* Copyright © 2019 TanYaqiu. All rights reserved.
* @author TanYaqiu 
* @address flat 601
* @date 2019年6月16日 上午4:18:44
*/
public interface LinkMap {

	public enum PUT{
		EXIST,
		NOSPACE,
		SUCCESS,
		FAILD,
	}
	PUT put(byte[] key,byte[] value,boolean isStable);
	
	static public byte UNPUT_OK = 1;
	static public byte UNPUT_LINKED = 2;
	static public byte UNPUT_NOFILE = 3;
	byte unput(byte[] key,UnputAuthor author);
	
	boolean  has(byte[] key);
	
	static public byte STABLE_OK = 1;
	static public byte STABLE_STABLED = 2;
	static public byte STABLE_NOFILE = 3;
	byte stable(byte[] key);
	
	static public byte UNSTABLE_OK = 1;
	static public byte UNSTABLE_UNSTABLED = 2;
	static public byte UNSTABLE_NOFILE = 3;
	byte unstable(byte[] key);
	
	static public byte ISSTABLE_STABLED = 1;
	static public byte ISSTABLE_UNSTABLED = 2;
	static public byte ISSTABLE_NOFILE = 3;
	byte isstable(byte[] key);

	byte[][] linked(byte[] key);

}
